﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using WinApp.i18n;
using WinApp.Until;
using WinApp.ViewModel;

namespace WinApp
{
    public static class GlobalVariables
    {


        /// <summary>
        /// 系统语言（CN（中文），EN（英文）。。。）
        /// </summary>
        public static string SystemLanguage = Language.InitLang();

        public static string SystemSwitchModel = UtilHelper.InitSwitchMode();

        public static UserInfoOutputDto UserInfo { get; set; }

        /// <summary>
        /// 接口IP
        /// </summary>
        public static string HostIp { get; set; }

        /// <summary>
        /// 静态资源Ip
        /// </summary>
        public static string WebIp { get; set; }

        public static string RootDomainName { get; set; }
        static GlobalVariables()
        {
            if (UserInfo == null)
            {
                UserInfo = new UserInfoOutputDto();
            }
        }

    }
}
